<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
  </head>

  <body>
    <div id="eachList"></div>

    <script id="each" type="text/x-jquery-tmpl">
      <ul>
        <li>ID: ${id}</li>
        <li>Langs:
          <ul>
            {{each Langs}}
            <li>${$index + 1} —— ${$value}</li>
            {{/each}}
          </ul>
        </li>
      </ul>
    </script>

    <script
      type="text/javascript"
      src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js"
    ></script>
    <script type="text/javascript" src="./9/jquery.tmpl.min.js"></script>
    <script>
      $(function () {
        var users = [
          {
            id: 'think8848',
            name: ['Joseph', 'Chan'],
            Langs: ['Chinese', 'English'],
          },
          {
            id: 'aCloud',
            name: ['Mary', 'Cheung'],
            Langs: ['Chinese', 'French'],
          },
        ]
        $('#each').tmpl(users).appendTo('#eachList')
      })
    </script>
  </body>
</html>
